
#include "ogl/gut/MeshDesc.h"
#include "ogl/gut/VertexArray.h"
#include "imgui/custom/Editor.h"

template <>
bool ImGui::Editor::Edit(const std::string &label, Ogl::Gut::MeshDesc &inst)
{
    int index = 0;
    if (TreeNode(label.c_str(), inst.m_BitFlag, index++))
    {

        Editor::ComboInst<Ogl::Gut::MeshDescType, Ogl::Gut::MeshDescTypeDesc>("Mesh Desc Type", Ogl::Gut::Dictionary::m_MeshDescTypeDescs, inst.m_Type);

        EditInst<Ogl::Gut::MeshDesc1>("Origin Data", inst.m_Desc1);
        EditInst<Ogl::Gut::MeshDesc2>("Mesh Data", inst.m_Desc2);
        EditInst<Ogl::Gut::MeshDesc3>("Origin Data File", inst.m_Desc3);
        EditInst<Ogl::Gut::MeshDesc4>("Mesh Data File", inst.m_Desc4);

        EditInst<Ogl::Gut::MeshDesc5>("Model File", inst.m_Desc5);
        TreePop();
    }

    return false;
};
